From c7500031680a9b924d66fe69a537bd990de775c3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Oct 2010 19:59:29 +0200 Subject: [PATCH] Point to GtkGrid from the GtkBox and GtkTable docs --- docs/reference/gtk/tmpl/gtktable.sgml | 13 +++++++++---- gtk/gtkbox.c | 3 +++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/reference/gtk/tmpl/gtktable.sgml b/docs/reference/gtk/tmpl/gtktable.sgml index a95a3199f6..22503eaa39 100644 --- a/docs/reference/gtk/tmpl/gtktable.sgml +++ b/docs/reference/gtk/tmpl/gtktable.sgml @@ -32,17 +32,22 @@ either side of the widget it belongs to. gtk_table_set_homogeneous(), can be used to set whether all cells in the table will resize themselves to the size of the largest widget in the table. + +Note that #GtkGrid provides the same capabilities as GtkTable for arranging +widgets in a rectangular grid, and additionally supports height-for-width +geometry management. + -#GtkVBox -For packing widgets vertically only. +#GtkBox +For packing widgets in a single row. -#GtkHBox -For packing widgets horizontally only. +#GtkGrid +For packing widgets in a grid with height-for-width geometry management. diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 523b19a349..50e827de85 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -74,6 +74,9 @@ * Use gtk_box_set_child_packing() to reset the #GtkBox:expand, * #GtkBox:fill and #GtkBox:padding child properties. * Use gtk_box_query_child_packing() to query these fields. + * + * Note that a single-row or single-column #GtkGrid provides exactly the + * same functionality as #GtkBox. */ #include "config.h" -- 2.30.2